gDetailsController = BaseController.extend({
	template:'gDetails',
	center:'商品详情',
	left:'',
	mainView:'goods-detail',
	waitOn:function(){
		let self = this;
		Tracker.autorun(function(){
			Meteor.subscribe('goods',{id:parseInt(self.params.id)},{limit:1},function(){
				self.ready();
			});
		})
	},
	onRendered:function(){
		var myApp = new Framework7();
		var $$ = Dom7;
		setTimeout("myApp.swiper('.swiper-container', {pagination:'.swiper-pagination',speed: 400,spaceBetween: 1})", 1000);
	},
	data:function(){
		return{
			goods:goods.findOne()
		}
	}
})
